define(['text!service/repairDetail.html'],
	function(viewTemplate) {
		return Piece.View.extend({
			id: 'service_repairDetail',
			render: function() {
				$(this.el).html(viewTemplate);

				Piece.View.prototype.render.call(this);
				return this;
			},
			onShow: function() {
				//write your business logic here :)

		
				var windowHeight = $(window).height();
				var elTop = $("#repairDetail").offset().top;
				var elHeight = windowHeight - elTop;

				console.info(elHeight);
				$("#repairDetail").css({
					"height": elHeight
				});
				var isss = new iScroll($("#repairDetail")[0]);
				// $("#warrantyCard")[0].css("bottom", "20px");
				isss.refresh();
			}
		}); //view define

	});